﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="News.aspx.vb" Inherits="prototype.News" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            font-size: x-large;
            text-align: center;
        }
        .style2
        {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
    <p class="style2">
        &nbsp;&nbsp;&nbsp;&nbsp; <strong><span class="style1">Latest News of 
        Hertfordshire Law Society </span></strong></p>
    <p>
        &nbsp;</p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" 
            GridLines="None" style="font-size: medium" Width="862px">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Subject" HeaderText="Subject" 
                    SortExpression="Subject" />
                <asp:BoundField DataField="News" HeaderText="News" SortExpression="News" />
                <asp:BoundField DataField="AddedDate" HeaderText="Date" 
                    SortExpression="AddedDate" />
                <asp:BoundField DataField="Author" HeaderText="Member" 
                    SortExpression="Author" />
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:PlayersConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:PlayersConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [Author], [Subject], [News], [AddedDate] FROM [News] ORDER BY [AddedDate] DESC">
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p><center>
    <p>
        To Add Latest News Click here : 
        <asp:Button ID="Button1" runat="server" PostBackUrl="~/AddNews.aspx" 
            Text="Add Latest News" />
    </p></center>
    <p>
    </p>
    <p>
    </p>
    <p>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/News.aspx">Return to Top</asp:HyperLink>
    </p>
</asp:Content>
